package com.yyb.mapper;

import com.yyb.domain.SysDictData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author LJH
* @description 针对表【sys_dict_data(字典数据表)】的数据库操作Mapper
* @createDate 2024-02-22 23:43:27
* @Entity com.yyb.domain.SysDictData
*/
public interface SysDictDataMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysDictData record);

    int insertSelective(SysDictData record);

    SysDictData selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysDictData record);

    int updateByPrimaryKey(SysDictData record);

    /**
     * 根据字典类型删除字典数据表里面数据
     * @param dictType
     */
    int deleteByDictType(@Param("dictType") String dictType);

    /**
     * 根据字典类型获取字典数据
     * @param dictType
     * @return
     */
    List<SysDictData> getDictDataByDictType(@Param("dictType") String dictType);

    /**
     * 查询所有字典数据
     * @return
     */
    List<SysDictData> queryAllDictData();
}
